package com.um.jdy.app.base.manager;

import cn.hutool.core.bean.BeanUtil;
import com.um.jdy.common.shop.entity.po.Courier;
import com.um.jdy.common.shop.entity.vo.CourierVO;
import com.um.jdy.common.shop.service.CourierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 管理类：搜索热门关键词
 */
@Component
public class CourierManager {

    @Autowired
    CourierService courierService;

    public List<CourierVO> getAll() {
        List<Courier> list = courierService.getList(new String[]{}, new String[]{}, new String[]{"sort_no"}, new String[]{"asc"});
        return BeanUtil.copyToList(list, CourierVO.class);
    }
}
